<!DOCTYPE html>
<?php
	@session_start();//modified by Xiaofen Huang
?>
<html lang="zh-hk">
<head>

	<title>Tiny bOOk</title>
	
	<meta http-equiv="Content-Type" content="text/html charset=UTF-8">
	<meta name="contentType" value="text/html  charset=GBK">
	<meta name="description" content="">
	<meta http-equiv="imagetoolbar" content="no">
	<link rel="stylesheet" type="text/css" href="../bootstrap/bootstrap.css"/>
	<link rel="stylesheet" type="text/css" href="../css/header.css">
</head>

<body>

	<!--banner头部菜单 -->
	<div class="navbar">
		<div class="navbar-inner">
			<ul class="nav">				
				<?php
					if(isset($_SESSION['currentUser'])){
				?>
						<li href="myPage.php"><?= $_SESSION['currentUser'] ?></li>
				<?php
					}else{
				?>
						<li href="login.php"><span>登录</span></li>
				<?php
					}
				?>
				<?php
					if(isset($_SESSION['currentUser'])){
				?>
						<li href="exit.php"><span>退出</span></li>
				<?php
					}else{
				?>
						<li href="register.php"><span>注册</span></li>
				<?php
					}
				?>
			</ul>
		</div>
		<div class="navbar">
			<div class="navbar-inner">
				<a class="brand" href="mainPage.php">Tiny bOOk</a>
				<ul class="nav">
					<li class="active"><a href="mainPage.php">首页</a></li>
					<li>
						<?php
						if(isset($_SESSION['currentUser']))
						{
							if ($_SESSION['currentUser'] === "manager")
							{
						?>
								<a href="adminPage.php">
								
						<?php
							}
							else{
						?>
								<a href="myPage.php">
						<?php
							}
						?>
							我的主页</a>
						<?php
						}
						?>
					</li>
					<li><a href="booklist.php">图书</a></li>
					<li><a href="thesislist.php">论文</a></li>
					<li><a href="grouplist.php">小组</a></li>
				</ul>
			</div>
		</div>
	</div>
	<!--end of banner -->
</body>

</html>